package com.hgw.Demo05_MediatorPattern.examples;

/**
 * Data time:2021/12/18 17:51
 * StudentID:2019112118
 * Author:hgw
 * Description: 文本框类，充当具体同事类
 */
public class TextBox extends Component{
    @Override
    public void update() {
        System.out.println("文本框增加一项：张无忌.");
    }

    public void setText() {
        System.out.println("文本 框选中项 ：小龙女.");
    }
}
